// base routes
export default [
  { path: "/", exact: true, redirect: "/app/portal" },
  { path: "/test", exact: true, redirect: "/app/portal" },
  { path: "/login", exact: true, component: "Login/Login" },
  {
    path: "/app",
    component: "@/layouts/",
    menu: true, // 决定是否渲染在左侧菜单
    routes: [
      {
        path: "/app/portal",
        title: "首页",
        exact: true,
        component: "Portal/Portal",
      },
      {
        path: "/app/protocal",
        title: "协议管理",
        exact: true,
        component: "Protocal/Protocal",
      },

      {
        path: "/app/application/",
        title: "应用管理",
        routes: [
          {
            path: "/app/application/appManage",
            title: "应用配置",
            exact: true,
            component: "Application/AppManage/AppManage",
          },
          {
            path: "/app/application/globalConfig",
            title: "全局配置",
            exact: true,
            component: "Application/GlobalConfig/GlobalConfig",
          },
        ],
      },

      {
        path: "/app/custom/",
        title: "用户管理",
        routes: [
          {
            path: "/app/custom/seal",
            title: "印章管理",
            exact: true,
            component: "Custom/Seal/Seal",
          },
          {
            path: "/app/custom/user",
            title: "个人中心",
            routes: [
              {
                path: "/app/custom/user/test1",
                title: "测试1",
                exact: true,
                component: "Custom/User/Test1/Test1",
              },
              {
                path: "/app/custom/user/test2",
                title: "测试2",
                exact: true,
                component: "Custom/User/Test2/Test2",
              },
              {
                path: "/app/custom/user/test3",
                title: "测试3",
                exact: true,
                component: "Custom/User/Test3/Test3",
              },
            ],
          },
        ],
      },

      { title: "404", component: "404/404", hiddenInMenu: true },
    ],
  },
  { component: "404/404" },
];
